FROM yd-artifact.srdcloud.cn/sc-oshare-docker-mc/nginx:1.22.0-alpine
ENV TZ=Asia/Shanghai
RUN mkdir -p /apps/nginx/html/oper \
    && mkdir -p /apps/nginx/html/pre_oper \
    && mkdir  -p /var/log/nginx \
    && touch /var/log/nginx/error.log
ADD ./oper/oper.tar /apps/nginx/html/oper
ADD ./oper/oper.tar /apps/nginx/html/pre_oper
COPY ./public/static/nginx.conf  /apps/nginx/conf/nginx.conf
COPY ./public/static/mime.types /apps/nginx/conf/mime.types
WORKDIR /apps/nginx/html
EXPOSE 8080
CMD ["nginx", "-c", "/apps/nginx/conf/nginx.conf","-g", "daemon off;"]
